import service from '@/utils/request'
// import { createService } from '@/utils/request'
import { AxiosResponse } from 'axios'
import qs from 'qs'
import {Ref, UnwrapRef} from "vue";
import {reqMajorInfo} from "@/api/system/type";

enum API {
    getAllMajorURL = '/teach-system/major/list'
}

//获取所有专业信息
export const getAllMajor = (data:reqMajorInfo)=> {
    return service.teachService.get<any,AxiosResponse<any>>(
        API.getAllMajorURL + '?' +qs.stringify(data)
    )
}
